package com.kyd.jpa.uid.utils;


import org.hibernate.jpa.spi.IdentifierGeneratorStrategyProvider;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhuangqi
 * @date 2019-03-26
 */
public class GeneratorStrategyProvider implements IdentifierGeneratorStrategyProvider {


    @Override
    public Map<String, Class<?>> getStrategies() {
        Map<String, Class<?>> map = new HashMap<>(1);
        map.put("UID",UIDGenerator.class);
        return map;
    }


}
